<!DOCTYPE html>
<html lang="en">
<head>
<{include file="public_html/header_tag.html"}>
	<title>题库</title>
<link href="/static/public/layer/src/css/layui.css" rel="stylesheet">
<script src="/static/public/layer/src/layui.js"></script>
<style type="text/css">
	.layui-select-title{width: 100px;}
	.center_box dl{height:auto;}
</style>
</head>
<body>
<div class="wrap">
	<!--star header-->
	<div class="sys-header">
		<div class="w1200">
			<div style="width:955px;">
				<span class="sys_logo"><i class="p-r20"><img src="/static/www/img/sys_logo.png"></i>德安信会计考试系统</span>
				<a class="btn btn-1aa3fa r" href="<{$jump_url}>">放弃做题</a>
			</div>
		</div>
	</div>
	<!--end  header-->
	<!--star main-->
	<div class="wrap_main fix">
		<!--content star-->
		<div class="col_main m-t40 test-system">
				<!--star立即做题-->
				<div class="system_con">
					<!--star-->
					<div class="top_tit line-all LH30">
						<div class="tit b-FFFFFF tac">
							<div class="fs14 fontsize tar">
								<span class="c-999999">字体大小：</span>
								<span>
									<a class="u2 change_font" id="big" href="javascript:;">大</a>
									<a class="u2 change_font curr" id="middel" href="javascript:;">中</a>
									<a class="u2 change_font" id="small" href="javascript:;">小</a>
								</span>
							</div>
							<div><span class="fs20"><{$chapter_info.title}> (<{$chapter_action}>)</span></div>
						</div>
						<div class="con b-f7f7f7 line-top">
							<span class="fs16 l m-r30">共<{$chapter_info.topic_total}>道考题</span>
							<div class="fs12 l line-all con_box" style="height: 30px; width:800px;">
								<div class="l" id="jdt" style="background:#fccbae; height: 30px; width:<{100-$chapter_info.no_topic_total/$chapter_info.topic_total*100}>%">
								</div>
								<div style="position: absolute; padding-left: 10px;">
									<span class="c-666666 m-r10">已完成</span>
									<span class="m-r10">
										<em id="test_end_topic_num"><{$chapter_info.topic_total - $chapter_info.no_topic_total}></em>
										/
										<em id="topic_total"><{$chapter_info.topic_total}></em>
									</span>
								</div>
							</div>
						</div>
					</div>
					<!--end-->
					<!--star-->
					<div class="center_box fs14 LH35">
						<div class="item">
							<{assign var="key" value="1"}>
							<{foreach from=$chapter_info.topic_list item=topics key=type}>
								<{foreach from=$topics item=item}>
								<{if $type == 1}>
									<dl class="topic_box" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>" type="1">
										<dt><h2><em><{$key}></em>单选题</h2><span><{$item.subject_text}></span></dt>
										<dd class="option">
											<{foreach from=$item.result item=answers key=key1}>
											<p><span><{$letter[$key1]}>.</span><{$answers.answer_text}></p>
											<{/foreach}>
										</dd>
										<dd class="answer analysis_box">
											<{foreach from=$item.result item=answers key=key2}>
											<span>
												<input type="radio" name='topic[radio][<{$item.id}>]' <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>checked<{/if}> value="<{$answers.id}>" />
												<label <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>class="hRadio_Checked"<{/if}>><i class="ico_radio"></i><{$letter[$key2]}></label>
											</span>
											<{/foreach}>
										</dd>

										<dd class="answer analysis_box" style="height: auto; display: none;">
											<h3 style="color: red;">正确答案：
											<{foreach from=$item.result item=answers key=key2}>
											<{if $answers.is_right == 1}>
													<{$letter[$key2]}>
											<{/if}>
											<{/foreach}>
											</h3>
										</dd>

										<dd class="analysis_box" style="width: 87%; margin: 0 auto; display: none;">
											<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
										</dd>
									</dl>
								<{else if $type == 2}>
									<dl class="topic_box" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>" type="2">
										<dt><h2><em><{$key}></em>多选题</h2><span><{$item.subject_text}></span></dt>
										<dd class="option">
											<{foreach from=$item.result item=answers key=key1}>
											<p><span><{$letter[$key1]}>.</span><{$answers.answer_text}></p>
											<{/foreach}>
										</dd>
										<dd class="answer analysis_box">
											<{foreach from=$item.result item=answers key=key2}>
											<span>
												<input type="checkbox" name='topic[checkbox][<{$item.id}>][]' <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>checked<{/if}> value="<{$answers.id}>" />
												<label class="checkbox <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>checked<{/if}>"><i class="ico_check"></i><{$letter[$key2]}></label>
											</span>
											<{/foreach}>
										</dd>

										<dd class="answer analysis_box" style="height: auto; display: none;">
											<h3 style="color: red;">正确答案：
											<{foreach from=$item.result item=answers key=key2}>
											<{if $answers.is_right == 1}>
													<{$letter[$key2]}>
											<{/if}>
											<{/foreach}>
											</h3>
										</dd>

										<dd class="analysis_box" style="width: 87%; margin: 0 auto; display: none;">
											<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
										</dd>
									</dl>
								<{else if $type == 3}>
									<dl class="topic_box" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>" type="3">
										<dt><h2><em><{$key}></em>判断题</h2><span><{$item.subject_text}></span></dt>
										<dd class="answer analysis_box">
											<{foreach from=$item.result item=answers key=key2}>
											<span>
												<input type="radio" name='topic[choice][<{$item.id}>]' <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>checked<{/if}> value="<{$answers.id}>">
												<label <{if isset($item.answer_list) AND $answers.id|in_array:$item.answer_list}>class="hRadio_Checked"<{/if}>><i class="ico_radio"></i><{$answers.answer_text}></label>
											</span>
											<{/foreach}>
										</dd>

										<dd class="answer analysis_box" style="height: auto; display: none;">
											<h3 style="color: red;">正确答案：
											<{foreach from=$item.result item=answers key=key2}>
											<{if $answers.is_right == 1}>
													<{$letter[$key2]}>
											<{/if}>
											<{/foreach}>
											</h3>
										</dd>

										<dd class="analysis_box" style="width: 87%; margin: 0 auto; display: none;">
											<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
										</dd>
									</dl>
								<{else if $type == 4}>
								<form action="/user/tiku/save_volume" method="post" class="layui-form layui-form-pane topic_box" id="form<{$item.id}>" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>" type="4">
									<input type="hidden" name="topic_id" value="<{$item.id}>" />
									<dl>
										<dt><h2><em><{$key}></em>计算分析题</h2><span><{$item.subject_text}></span></dt>
										<dd class="answer" style="height: auto">
											<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
												<div class="layui-tab-content">
													<{foreach from=$item.result key=k item=analys_item}>
														<div class="layui-tab-item layui-show">
															<div class="layui-form-item layui-form-text">
																<div class="layui-input-block">
																	<{$k+1}>、<{$analys_item.subject_text}>
																</div>
															</div>
															
															<{if $analys_item.analys_type == 1}>
															<div class="layui-form-item tk_answer analysis_box">
																<div class="layui-inline">
																	<label class="layui-form-label">子题干答案</label>
																	<div class="layui-input-block">
																		<{if isset($item.answer_list)}>
																		<input type="text" name="analys[<{$analys_item.answer_list[0].aid}>][<{$analys_item.answer_list[0].id}>][answer_text]"  autocomplete="off" class="layui-input" value="<{$item.answer_list[$analys_item.answer_list[0].aid][$analys_item.answer_list[0].id].answer_text}>" style="width: 500px;">
																		<{else}>
																		<input type="text" name="analys[<{$analys_item.answer_list[0].aid}>][<{$analys_item.answer_list[0].id}>][answer_text]"  autocomplete="off" class="layui-input" style="width: 500px;">
																		<{/if}>
																	</div>
																</div>
															</div>
															<div class="answer analysis_box" style="height: auto; display: none;">
																<h3 style="color: red;">正确答案：
																<{$analys_item.answer_list[0].answer_text}>
																</h3>
															</div>
															<{else}>
															<{foreach from=$analys_item.answer_list key=k item=analys_result}>
															<div class="layui-form-item fl_answer analysis_box">
																<div class="layui-inline">
																	<label class="layui-form-label">借贷方向</label>
																	<div class="layui-input-block">
																		<{if !empty($item.answer_list[$analys_result.aid][$analys_result.id].type)}>
																		<select name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][type]">
																			<option value="1" <{if $item.answer_list[$analys_result.aid][$analys_result.id].type == 1}>selected<{/if}>>借</option>
																			<option value="2" <{if $item.answer_list[$analys_result.aid][$analys_result.id].type == 2}>selected<{/if}>>贷</option>
																		</select>
																		<{else}>
																		<select name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][type]">
																			<option value="1">借</option>
																			<option value="2">贷</option>
																		</select>
																		<{/if}>
																	</div>
																</div>
																<div class="layui-inline">
																	<label class="layui-form-label">选择科目</label>
																	<div class="layui-input-block">
																		<{if !empty($item.answer_list[$analys_result.aid][$analys_result.id].topic_subject_id)}>
																		<input type="hidden" class="accounts" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][topic_subject_id]" value="<{$item.answer_list[$analys_result.aid][$analys_result.id].topic_subject_id}>">
																		<input type="text" autocomplete="off" style="width:136px;" class="layui-input" readonly onclick="choice_accounts(this)" value="<{$ac_subject[$item.answer_list[$analys_result.aid][$analys_result.id].topic_subject_id]['title']}>">
																		<{else}>
																		<input type="hidden" class="accounts" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][topic_subject_id]" >
																		<input type="text" autocomplete="off" style="width:136px;" class="layui-input" readonly onclick="choice_accounts(this)">
																		<{/if}>
																	</div>
																</div>
																<div class="layui-inline">
																	<label class="layui-form-label">答案</label>
																	<div class="layui-input-block">
																		<{if !empty($item.answer_list[$analys_result.aid][$analys_result.id].answer_text)}>
																		<input type="text" style="width:136px;" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][answer_text]" autocomplete="off" class="layui-input" value="<{$item.answer_list[$analys_result.aid][$analys_result.id].answer_text}>">
																		<{else}>
																		<input type="text" style="width:136px;" name="analys[<{$analys_result.aid}>][<{$analys_result.id}>][answer_text]" autocomplete="off" class="layui-input">
																		<{/if}>
																	</div>
																</div>
															</div>
															<div class="answer analysis_box" style="height: auto; display: none;">
																<h3 style="color: red;">
																正确答案：
																<span style="width: 100px; float: none;">借贷方向：
																<{if $analys_result.type == 1}>
																借
																<{else}>
																贷
																<{/if}>
																</span>
																<span style="width: 100px;float: none;">科目：<{$analys_result.topic_subject_title}></span>
																<span style="width: 100px;float: none;">答案：<{$analys_result.answer_text}></span>
																</h3>
															</div>
															<{/foreach}>
															<{/if}>
													    </div>
													<{/foreach}>
												</div>
											</div>
											<div class="analysis_box" style=" display: none;">
												<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
											</div>
										</dd>
									</dl>
								</form>
								<{else if $type == 7}>
									<form action="/user/tiku/save_volume" method="post" class="topic_box" id="form<{$item.id}>" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>" type="7">
										<input type="hidden" name="topic_id" value="<{$item.id}>" />
										<dl>
											<dt><h2><em><{$key}></em>不定项选择题</h2><span><{$item.subject_text}></span></dt>
											<{foreach from=$item.result key=k item=analys_item}>
											<dd class="option">
												<{$analys_item.subject_text}>
											</dd>
											<dd class="option">
												<{foreach from=$analys_item.answer_list item=answers key=key1}>
												<p><span><{$letter[$key1]}>.</span><{$answers.answer_text}></p>
												<{/foreach}>
											</dd>
											<dd class="answer analysis_box">
												<{foreach from=$analys_item.answer_list item=answers key=key2}>
												<span>
													<input type="checkbox" name='bdx[<{$answers.aid}>][]' <{if isset($item['answer_list'][$answers.aid]) AND $answers.id|in_array:$item['answer_list'][$answers.aid]}>checked<{/if}> value="<{$answers.id}>" />
													<label <{if isset($item['answer_list'][$answers.aid]) AND $answers.id|in_array:$item['answer_list'][$answers.aid]}>class="checked"<{/if}>><i class="ico_check answeri" answer_id="<{$answers.id}>"></i><{$letter[$key2]}></label>
												</span>
												<{/foreach}>
											</dd>
											<dd class="answer analysis_box" style=" display: none;">
												<h3 style="color: red;">正确答案：
												<{foreach from=$analys_item.answer_list item=answers key=key2}>
												<{if $answers.is_right == 1}>
														<{$letter[$key2]}>
												<{/if}>
												<{/foreach}>
												</h3>
											</dd>
											<{/foreach}>
											<dd class="analysis_box" style="width: 87%; margin: 0 auto; display: none;">
												<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
											</dd>
										</dl>
									</form>
								<{else if $type == 8 || $type == 9}>
									<dl class="topic_box" type="<{$type}>" <{if $item.id != $chapter_info.first_topic}>style="display: none;"<{/if}> topic_id="<{$item.id}>">
										<dt><h2><em><{$key}></em><{if $type == 8}>名词解释<{else}>简答题<{/if}></h2><span><{$item.subject_text}></span></dt>
										<dd class="answer" style="height: auto;">
											<textarea class="layui-textarea " name="subject_text"  id="editor<{$item.id}>"><{$item.answer_list[0]|default:''}></textarea>
										</dd>
										<dd class="analysis_box" style="width: 87%; margin: 0 auto; display: none;">
											<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">答案解析：</h3><{$item.analysis}></pre>
										</dd>
									</dl>
								<{/if}>
								<{$key=$key+1}>
								<{/foreach}>
							<{/foreach}>
						</div>

					</div>
					
					<!--end-->
				
				</div>
				<div class="system_navigation">
					<div class="col_fixed">
	                    <div>
	                        <div class="nav_tit" style="background-color: #33CC8F;color: #000;">题目导航</div>
	                        <div class="md">
		                        <ol>
		                        <li class="sld_01"><span><em></em>当前题</span></li>
		                        <li class="sld_02"><span><em></em>已做题</span></li>
		                        <li class="sld_03"><span><em></em>未做题</span></li>
		                        </ol>
		                    </div>
	                        <!--star单选题-->
	                        <{foreach from=$chapter_info.topic_list key=type item=item_type}>
	                        <div class="nav_tm_list">
	                        	<div class="mt"><i><s class="s_minus"></s><s class="s_plus"></s></i><span><{$type_names[$type]}></span></div>
	                        	<div class="mc">
	                        		<ul>
	                        			<{assign var="key" value="1"}>
	                        			<{foreach from=$item_type item=item}>
											<li type="<{$type}>" topic_id="<{$item.id}>"><a href="javascript:;" class="<{if $item.has_answer == 1}>curr<{/if}> <{if $item.id == $chapter_info.first_topic}>selected<{/if}>"><{$key}></a></li>
										<{$key=$key+1}>
										<{/foreach}>
	                        		</ul>
	                        	</div>
	                        </div>
	                        <{/foreach}>
	                    </div>
	                    <div>
	                    	<div class="nav_tit" style="background-color: #33CC8F;color: #000;">手机做题</div>
							<div><img style="width: 290px;" src="http://qr.topscan.com/api.php?text=<{$school_info.url_wap}>/my/tiku/start_topic_test/<{$chapter_info.id}>/<{$type}>"/></div>
						</div>
					</div>
                </div>
				
				<div class="system_point">
                	<!--
                    <div class="mt">隐藏（还剩12道题）</div>
                    -->
                    <!--小提示【新增】-->
                    <div class="md toolBox">
                        <div class="bs-button" style="width: auto;">
                        	<button type="button" id="up_topic">上一题</button>
                        	<button type="button" id="next_topic">下一题</button>
                        	<button type="button" style="background-color: #F7B824" id="show_analysis">查看解析</button>
                        </div>
                    </div>
                </div>
				<!-- <div class="system_point">
					<div class="mt">还剩<em id="no_topic_total"><{$chapter_info.no_topic_total}></em>道题尚未作答</div>
					<div class="mc">
						<ul>
							<{assign var="key" value="1"}>
							<{foreach from=$chapter_info.topic_list item=topics key=type}>
								<{foreach from=$topics item=item}>
									<li topic_id="<{$item.id}>" <{if $item.has_answer == 1}>class="curr"<{/if}>><span><{$key}></span></li>
								<{$key=$key+1}>
								<{/foreach}>
							<{/foreach}>
						</ul>
					</div>
				</div> -->
		</div>
		<!--content end-->
		<script type="text/javascript">
		$(function(){
			/*var no_topic_total = $("#no_topic_total").html();
			if(no_topic_total == 0){
				layer.confirm('题目做完了，是否交卷？', {
					title:"提示",
					icon: 1,
			  		btn: ['交卷','取消'] //按钮
				}, function(){
				  	$("#save_volume").submit();
				},function(){
					$(".center_box").addClass("no_submit");
				});
			}*/
			$('.system_navigation').find('.nav_tm_list .mt').click(function(){
				$(this).siblings('.mc').toggle();
				$(this).find('.s_plus').toggle();
			})

			$(".change_font").click(function(){
				id = $(this).attr("id");
				if(id == 'big'){
					$(".center_box").attr("style", "font-size:20px;")
				}else if(id == 'middel'){
					$(".center_box").attr("style", "font-size:14px;")
				}else{
					$(".center_box").attr("style", "font-size:10px;")
				}
				$(".change_font").removeClass("curr");
				$(this).addClass("curr");
			})
			
			$("#save_volume_but").click(function(){
				var _this = $(".item").find(".topic_box:visible");
				answer_topic(_this);
				$("#save_volume").submit();
			})
			$('.answer').xljsradio('span');
			$('.answer').xljscheckbox('span');
			$(window).scroll(function(){
				var sys_h = $('.sys-header').outerHeight() + 80;
				var scrollValue = $(window).scrollTop();
				if(scrollValue > sys_h){
					$(".col_fixed").css({'position':'fixed'});
				}else{
					$(".col_fixed").removeAttr('style');
				}
			});

			$("#next_topic").click(function(){
				var _this = $(".item").find(".topic_box:visible");
				var need_show_elment = _this.next();
				if(need_show_elment.length == 1){
					_this.hide();
					need_show_elment.show();
				}
				answer_topic(_this);
			})

			$("#up_topic").click(function(){
				var _this = $(".item").find(".topic_box:visible");
				var need_show_elment = _this.prev();
				if(need_show_elment.length == 1){
					_this.hide();
					need_show_elment.show();
				}
				answer_topic(_this);
			})

			$(".system_navigation").find("li").click(function(){
				$(".system_navigation").find("li a").removeClass("selected");
				var _this = $(this);
				_this.find("a").addClass("selected");
				var topic_id = _this.attr("topic_id");
				if(_this.attr("type") != 4 && _this.attr("type") != 7){
					var need_show_elment = $("dl[topic_id='"+topic_id+"']");
				}else{
					var need_show_elment = $("form[topic_id='"+topic_id+"']");
				}
				var need_hide_elment = $(".item").find(".topic_box:visible");
				if(need_hide_elment.attr("topic_id") != topic_id){
					if(need_show_elment.length == 1){
						need_hide_elment.hide();
						need_show_elment.show();
					}
					answer_topic(need_hide_elment);
				}
			})

			function answer_topic(topic_obj){
				//做过的题目不提交
				if(topic_obj.attr("status") == 'hasanswer'){}else{
					var type = topic_obj.attr("type");
					var topic_id = topic_obj.attr("topic_id");
					switch(type){
						case '1':
						case '2':
						case '3':
							var answer_id = new Array();
							var j = 0;
							$.each(topic_obj.find(".answer input"), function(i, obj){
								if($(obj).is(':checked')){
									answer_id[j] = $(obj).val();
									j++;
								}
							})
							if(answer_id.length > 0){
								//保存答案
								$.ajax({
									type: "POST",
									url: "/user/tiku/save_topic_answer",
									dataType:"json",
									async:false,
									data:{'topic_id':topic_id, 'answer_id':answer_id},
									success: function(result){
										if(result.code == 1){
											//添加已经做过的标识
											topic_obj.attr("status", "hasanswer");
											var test_end_topic_num = parseInt($("#test_end_topic_num").html())+1;
											var no_topic_total = parseInt($("#no_topic_total").html())-1;
											if(no_topic_total < 0) no_topic_total = 0;
											var topic_total = parseInt($("#topic_total").html());
											if(test_end_topic_num > topic_total) test_end_topic_num = topic_total;
											$("#test_end_topic_num").html(test_end_topic_num);
											$("#no_topic_total").html(no_topic_total);
											$("#jdt").css("width", 100 - no_topic_total / topic_total * 100 + "%");
											$("li[topic_id='"+topic_id+"']").find("a").addClass("curr");
										}
									}
								});
							}
						break;
						case '4':
						case '7':
							$.ajax({
								type: "POST",
								url: "/user/tiku/save_topic_answer",
								dataType:"json",
								async:false,
								data:$("#form"+topic_id).serializeArray(),
								contentType:'application/x-www-form-urlencoded',
								success: function(result){
									if(result.code == 1){
										//添加已经做过的标识
										topic_obj.attr("status", "hasanswer");
										var test_end_topic_num = parseInt($("#test_end_topic_num").html())+1;
										var no_topic_total = parseInt($("#no_topic_total").html())-1;
										if(no_topic_total < 0) no_topic_total = 0;
										var topic_total = parseInt($("#topic_total").html());
										if(test_end_topic_num > topic_total) test_end_topic_num = topic_total;
										$("#test_end_topic_num").html(test_end_topic_num);
										$("#no_topic_total").html(no_topic_total);
										$("#jdt").css("width", 100 - no_topic_total / topic_total * 100 + "%");
										$("li[topic_id='"+topic_id+"']").find("a").addClass("curr");
									}
								}
							});
						break;
						case '8':
						case '9':
							var answer_id = $("#editor"+topic_id).val();
							if(answer_id != ''){
								$.ajax({
									type: "POST",
									url: "/user/tiku/save_topic_answer",
									dataType:"json",
									async:false,
									data:{'topic_id':topic_id, 'answer_id':answer_id},
									success: function(result){
										if(result.code == 1){
											//添加已经做过的标识
											topic_obj.attr("status", "hasanswer");
											$("li[topic_id='"+topic_id+"']").find("a").addClass("curr");
										}
									}
								});
							}
						break;
					}
				}
				
				/*if($(".item").find("dl[status!='hasanswer']").length <= 0 && ! $(".center_box").hasClass("no_submit")){
					layer.confirm('题目做完了，是否交卷？', {
						title:"提示",
						icon: 1,
				  		btn: ['交卷','取消'] //按钮
					}, function(){
					  	$("#save_volume").submit();
					},function(){
						$(".center_box").addClass("no_submit");
					});
				}*/
			}
		});

		layui.use(['form', 'jquery', 'layedit', 'element'], function(){
		var layedit = layui.layedit,form = layui.form(),$ = layui.jquery, element = layui.element();
		
		});
		function choice_accounts(obj){
			$(".accounts").attr("id", "");
			$(".accounts").siblings().attr("id", "");
			$(obj).siblings(".accounts").attr("id", "hidden_id");
			$(obj).attr("id", "hidden_id_text");
			layer.open({
				type: 2,
				title: '选择科目',
				shadeClose: true,
				shade: 0.8,
				area: ['20%', '70%'],
				maxmin: true,
				content: '/tk_accounts_subject' //iframe的url
			}); 
		}

		$("#show_analysis").click(function(){
			if($(this).html() == '查看解析'){
				$(this).html('隐藏解析')
			}else{
				$(this).html('查看解析')
			}
			$(".analysis_box").toggle();
		})
		</script>
	</div>
	<!--end  main-->
</div>
</body>
</html>
